'use strict';
const db = uniCloud.database();
exports.main = async (event, context) => {
	//获取表
	const collection = db.collection("user");
	//event为客户端上传的参数
	console.log('event : ', event)
	const res= await collection.doc("66bec2206523417c9c53bec2").update(({userName:"大名"}))
	//返回数据给客户端
	return {
		code:200,
		msg:res
	}
};
